home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig08_08.jar
/
Ch08
/
Fig08_08
/
Hugeint1.h
< prev
Wrap
C/C++ Source or Header
|
1997-10-27
|
570b
|
22 lines
// Fig. 8.8: hugeint1.h
// Definition of the HugeInt class
#ifndef HUGEINT1_H
#define HUGEINT1_H
#include <iostream.h>
class HugeInt {
friend ostream &operator<<( ostream &, HugeInt & );
public:
HugeInt( long = 0 ); // conversion/default constructor
HugeInt( const char * ); // conversion constructor
HugeInt operator+( HugeInt & ); // add another HugeInt
HugeInt operator+( int ); // add an int
HugeInt operator+( const char * ); // add an int in a char *
private:
short integer[30];
};
#endif